package com.atguigu.spzx.manager;

import com.atguigu.spzx.manager.properties.UserProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author SNA
 * @date 2024/2/6
 **/
@SpringBootApplication
@ComponentScan(basePackages = {"com.atguigu.spzx"})  // 扫描包
@EnableConfigurationProperties(value = {UserProperties.class})  // 启用配置属性
public class ManagerApplication {

    public static void main(String[] args) {
        SpringApplication.run(ManagerApplication.class, args);
    }
}
